package com.huimeilianchuang.service;

import com.huimeilianchuang.dao.UserDao;
import com.huimeilianchuang.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements UserDao {
    @Autowired
    private UserDao userDao;
    @Override
    public User selectUserByOpenId(String openId) {
        return userDao.selectUserByOpenId(openId);
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }
}
